#include "mini2440MessagesContent.h"
#include "../ui_mini2440MessagesContent.h"

messagesContent::messagesContent(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::messagesContent)
{
    ui->setupUi(this);
}

messagesContent::~messagesContent()
{
    delete ui;
}

void messagesContent::changeEvent(QEvent *e)
{
    QDialog::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}
void messagesContent::setContent(QString *content, QString *subject)
{
    ui->textBrowser->setHtml(*content);
    ui->Subject->setText(*subject);
}
